import request from '@/utils/request'

export const workConfirmList = (data) => { //工作确认-列表
  return request.request({
    url: '/maintenance-system/api/workConfirmation/page',
    method: 'post',
    data
  })
}
export const workConfirmAppList = (data) => { //工作确认-审批列表
  return request.request({
    url: '/maintenance-system/api/process/audit/work/page',
    method: 'post',
    data
  })
}
export const workConfirmAdd = (data) => { //工作确认-新增
  return request.request({
    url: '/maintenance-system/api/workConfirmation/add',
    method: 'post',
    data
  })
}
export const workConfirmAPullDown = (data) => { //工作确认-下拉
  return request.request({
    url: '/maintenance-system/api/contractManagementRecord/contractInfo',
    method: 'post',
    data
  })
}
//原 put
export const workConfirmEdit = (data) => { //工作确认-编辑
  return request.request({
    url: '/maintenance-system/api/workConfirmation/edit',
    method: 'post',
    data
  })
}
//原 del
export const workConfirmDelete = (id) => { //工作确认-删除
  return request.request({
    url: '/maintenance-system/api/workConfirmation/del/'+id,
    method: 'get',
  })
}

export const workConfirmDetails = (id) => { //工作确认-详情
  return request.request({
    url: '/maintenance-system/api/workConfirmation/'+id,
    method: 'get',
  })
}
export const workConfirmAExport = (id) => { //工作确认-详情
  return request.request({
    url: '/maintenance-system/api/workConfirmation/export/word/'+id,
    responseType: 'arraybuffer',
    method: 'get',
  })
}
export const workConfirmAExportAll = (data) => { //工作确认-详情
  return request.request({
    url: '/maintenance-system/api/workConfirmation/export',
    responseType: 'arraybuffer',
    method: 'post',
    data,
  })
}

